package com.MediaVaultTest;

public class QuotaLogic {
	private long UploadQuota = 100000000;
	private long DownloadQuota = 100000000;
	private long StorageQuota = 100000000;
	private long maxThumbnailSize = 1000000;
	private long byteInMB = 1000000;

	public long getUploadQuota() {
		return UploadQuota;
	}


	public long getDownloadQuota() {
		return DownloadQuota;
	}

	public long getStorageQuota() {
		return StorageQuota;
	}
	
	public long getMBStoreRemaining(UserStore userStore) {
		return (StorageQuota-userStore.getmbStorage())/byteInMB;
	}
	
	public long getMBUploadRemaining(UserStore userStore) {
		return (UploadQuota-userStore.getmbUpload())/byteInMB;
	}
	
	public long getMBDownloadRemaining(UserStore userStore) {
		return (DownloadQuota-userStore.getmbDownload())/byteInMB;
	}

	public long getMaxThumbnailSize() {
		return maxThumbnailSize;
	}
	
}
